﻿namespace Core.Ndatax.Infrastructure.Entitys
{
    public class RequestInfo
    {
        /// <summary>
        /// 记录id
        /// </summary>

        public int ID { get; set; }

        /// <summary>
        /// 申请单id
        /// </summary>

        public string SheetID { get; set; }

        /// <summary>
        /// 申请单来源
        /// </summary>

        public int RequestSheetStyle { get; set; }

        /// <summary>
        /// 申请类别id
        /// </summary>

        public int? RequestTypeID { get; set; }

        /// <summary>
        /// 申请类别
        /// </summary>

        public string RequisitionType { get; set; }

        /// <summary>
        /// 开单科室编码
        /// </summary>

        public string BillingDeptCode { get; set; }

        /// <summary>
        /// 开单科室名称
        /// </summary>

        public string BillingDeptName { get; set; }

        /// <summary>
        /// 院区id
        /// </summary>

        public string HospitalId { get; set; }

        /// <summary>
        /// 开单医生id
        /// </summary>

        public string ReqSheetDoctorID { get; set; }

        /// <summary>
        /// 开单医生
        /// </summary>

        public string ReqSheetDoctor { get; set; }

        /// <summary>
        /// 开单日期
        /// </summary>

        public string ReqSheetDate { get; set; }

        /// <summary>
        /// 开单时间
        /// </summary>

        public string ReqSheetTime { get; set; }

        /// <summary>
        /// 看诊序号  ？？
        /// </summary>

        public string VisitingNo { get; set; }

        #region State
        /// <summary>
        /// 申请单状态
        /// </summary>

        public string RequestState { get; set; }
        /// <summary>
        /// 检查状态
        /// </summary>

        public string ExamState { get; set; }
        /// <summary>
        /// 费用状态
        /// </summary>

        public string FeeState { get; set; }

        /// <summary>
        /// 总费用
        /// </summary>

        public string TotalFee { get; set; }

        /// <summary>
        /// 医嘱状态 ？？
        /// </summary>

        public string OrderState { get; set; }
        /// <summary>
        /// 预约状态
        /// </summary>

        public string ReservationState { get; set; }

        /// <summary>
        /// 接口反馈状态 
        /// </summary>

        public string InterfaceResponState { get; set; }

        /// <summary>
        /// 当前状态
        /// </summary>

        public string CurrentState { get; set; }
        #endregion

        /// <summary>
        /// 推送次数 ？？
        /// </summary>

        public int? TryTimes { get; set; }

        /// <summary>
        /// 是否紧急 0-否，1-是
        /// </summary>

        public int IsEmergent { get; set; } = 0;
        /// <summary>
        /// 是否床边加收 0-否，1-是
        /// </summary>

        public string IsBedSide { get; set; }

        /// <summary>
        /// 是否肾功能不全 0-否，1-是
        /// </summary>

        public string IsHepatorenalComplete { get; set; }

        /// <summary>
        /// 是否传染病 0-否，1-是
        /// </summary>

        public int? IsInfectiousDisease { get; set; }

        /// <summary>
        /// 是否医保  0-否，1-是 
        /// </summary>

        public string IsMedicare { get; set; }

        /// <summary>  
        /// 是否附加治疗 0-否，1-是 ？？
        /// </summary>

        public string IsCure { get; set; }

        /// <summary> 
        /// 移动方式 ？？
        /// </summary>

        public int? MoveWay { get; set; }

        #region Exam    
        /// <summary>
        /// 检查科室编码
        /// </summary>

        public string ExamDeptCode { get; set; }
        /// <summary>
        /// 项目类型
        /// </summary>

        public string ExamModality { get; set; }

        /// <summary>
        /// 项目地点
        /// </summary>

        public string ExamPlace { get; set; }

        /// <summary>
        /// 是否需要预约 0-否，1-是 ？？
        /// </summary>

        public string NeedSchedule { get; set; }
        #endregion

        #region Patient
        /// <summary>
        /// 患者类型
        /// </summary>

        public int PatientStyle { get; set; }
        /// <summary>
        /// 患者流水号
        /// </summary>

        public string PatientJZLSH { get; set; }
        /// <summary>
        /// 门诊号
        /// </summary>

        public string OutPatientID { get; set; }
        /// <summary>
        /// 住院号
        /// </summary>

        public string InPatientID { get; set; }
        /// <summary>
        /// 患者卡号(医保卡号) 卡号查询查的是此字段
        /// </summary>

        public string PatientCardID { get; set; }

        /// <summary>
        /// 就诊卡号
        /// </summary>

        public string MedicalCardNo { get; set; }

        /// <summary>
        /// 电子健康卡
        /// </summary>

        public string EHC { get; set; }
        /// <summary>
        /// 病人号
        /// </summary>

        public string PatientID { get; set; }
        /// <summary>
        /// 患者名称
        /// </summary>

        public string PatientName { get; set; }
        /// <summary>
        /// 患者性别
        /// </summary>

        public string PatientSex { get; set; }

        /// <summary>
        /// 患者生日
        /// </summary>

        public string PatientBirth { get; set; }
        /// <summary>
        /// 患者年龄
        /// </summary>

        public string PatientAge { get; set; }
        /// <summary>
        /// 患者体重
        /// </summary>

        public string PatientWeight { get; set; }

        /// <summary>
        /// 病床编号
        /// </summary>

        public string PatientBedNo { get; set; }
        /// <summary>
        /// 住院日期
        /// </summary>

        public string PatientAdmitDate { get; set; }
        /// <summary>
        /// 住院次数
        /// </summary>

        public int? PatientAdmitTimes { get; set; }

        /// <summary>
        /// 患者手机号（预约系统允许更新的手机号）
        /// </summary>

        public string PatientHomeTel { get; set; }

        /// <summary>
        /// 第三方患者手机号（第三方拉取申请单时只更新此字段）
        /// </summary>

        public string ThirdPatientHomeTel { get; set; }
        /// <summary>
        /// 患者户口所在地
        /// </summary>

        public string PatientRegAddress { get; set; }
        /// <summary>
        /// 患者家庭地址
        /// </summary>

        public string PatientHomeAddress { get; set; }
        /// <summary>
        /// 特诊标识
        /// </summary>

        public string PatientHTH { get; set; }
        /// <summary>
        /// 医保类型
        /// </summary>

        public string PatientMedicareTypeID { get; set; }
        /// <summary>
        /// HIS费用类别
        /// </summary>

        public string DetailPatientStyle { get; set; }
        /// <summary>
        /// 患者国籍
        /// </summary>

        public string PatientNationality { get; set; }
        /// <summary>
        /// 患者职业
        /// </summary>

        public string PatientOccupation { get; set; }
        /// <summary>
        /// 患者身份证号
        /// </summary>

        public string PatientIdentityNo { get; set; }
        /// <summary>
        /// 医保卡号
        /// </summary>

        public string PatientMedicareCode { get; set; }
        /// <summary>
        /// 医保卡名
        /// </summary>

        public string PatientMedicareName { get; set; }
        /// <summary>
        /// 患者所属科室编码
        /// </summary>

        public string PatientDeptCode { get; set; }
        /// <summary>
        /// 患者所属科室名称
        /// </summary>

        public string PatientDeptName { get; set; }

        /// <summary>
        /// 患者级别影像号
        /// </summary>

        public string DICOMPatientID { get; set; }
        /// <summary>
        /// 工作地点
        /// </summary>

        public string WorkPlace { get; set; }
        /// <summary>
        /// 家庭号码
        /// </summary>

        public string FamilyTel { get; set; }
        /// <summary>
        /// 物理卡号
        /// </summary>

        public string PhysicalCardNum { get; set; }

        /// <summary>
        /// 体检单位名称
        /// </summary>

        public string PhysicalUnit { get; set; }
        /// <summary>
        /// 体检单位编号
        /// </summary>

        public string PhysicalUnitNO { get; set; }

        /// <summary>
        /// 医保卡号
        /// </summary>

        public string MedicalCardNum { get; set; }

        /// <summary>
        /// 病历摘要
        /// </summary>

        public string HistorySummary { get; set; }

        /// <summary>
        ///病史
        /// </summary>

        public string MedicalHistory { get; set; }

        /// <summary>
        /// 临床诊断
        /// </summary>

        public string ClinicalDiagnosis { get; set; }
        /// <summary>
        /// 特殊说明 
        /// </summary>

        public string SpecialRemark { get; set; }
        /// <summary>
        /// 病理结果
        /// </summary>

        public string PathologicalResult { get; set; }
        /// <summary>
        /// 原手术结果
        /// </summary>

        public string OperationResult { get; set; }
        /// <summary>
        /// 妇产科界面特殊字段
        /// </summary>

        public string RequestCustomData { get; set; }

        /// <summary>
        /// 申请单特殊属性（为空或为0标识非特殊类型）
        /// </summary>
        public int? PatientSpecialType { get; set; }

        /// <summary>
        /// 检查级别影像号
        /// </summary>

        public string AccessionNum { get; set; }
        #endregion

        #region Reservation
        /// <summary>
        /// 预约日期
        /// </summary>

        public string ReservationDate { get; set; }

        public string ReservationEndDate { get; set; }
        /// <summary>
        /// 预约时间
        /// </summary>

        public string ReservationTime { get; set; }
        /// <summary>
        /// 预约号源池
        /// </summary>

        public string ReservationRoom { get; set; }
        /// <summary>
        /// 排队号
        /// </summary>

        public string ReservationNum { get; set; }
        /// <summary>
        /// 预约地点
        /// </summary>

        public string ReservationPlace { get; set; }

        /// <summary>
        ///预约资源号
        /// </summary>

        public string ResSourceID { get; set; }
        /// <summary>
        /// 预约单号
        /// </summary>

        public string ScheduleID { get; set; }
        /// <summary>
        /// 预约模式 0-号源池，1-检查项目
        /// </summary>

        public int? ReservationType { get; set; }

        /// <summary>
        /// 取消预约原因
        /// </summary>

        public string CancelReason { get; set; }
        /// <summary>
        /// 取消预约日期
        /// </summary>

        public string CancelReserveDate { get; set; }
        /// <summary>
        /// 取消预约时间
        /// </summary>

        public string CancelReservaTime { get; set; }

        /// <summary>
        /// 预约报到时间
        /// </summary>

        public string ReservationReportDate { get; set; }
        /// <summary>
        /// 预约报到时间
        /// </summary>

        public string ReservationReportTime { get; set; }
        /// <summary>
        /// 预约报到截至时间
        /// </summary>

        public string ReservationReportEndTime { get; set; }

        #endregion

        #region Print
        /// <summary>
        /// 报告单打印日期
        /// </summary>

        public string ReportPrintDate { get; set; }
        /// <summary>
        /// 报告单打印时间
        /// </summary>

        public string ReportPrintTime { get; set; }
        /// <summary>
        /// 报告单打印医生工号
        /// </summary>

        public string ReportPrintDoctorID { get; set; }
        /// <summary>
        /// 报告单打印次数
        /// </summary>

        public int ReportPrintNum { get; set; } = 0;
        /// <summary>
        /// 报告单打印状态 1-已打印 0-未打印
        /// </summary>

        public string ReportPrintState { get; set; }
        /// <summary>
        /// 预约单打印日期
        /// </summary>

        public string ReservationPrintDate { get; set; }
        /// <summary>
        /// 预约单打印时间
        /// </summary>

        public string ReservationPrintTime { get; set; }
        /// <summary>
        /// 预约单打印医生工号
        /// </summary>

        public string ReservationPrintDoctorID { get; set; }
        /// <summary>
        /// 预约单打印次数
        /// </summary>

        public int ReservationPrintNum { get; set; } = 0;
        /// <summary>
        /// 预约单打印状态 1-已打印 0-未打印
        /// </summary>

        public string ReservationPrintState { get; set; }
        /// <summary>
        /// 申请单打印日期
        /// </summary>

        public string RequestPrintDate { get; set; }
        /// <summary>
        /// 申请单打印时间
        /// </summary>

        public string RequestPrintTime { get; set; }
        /// <summary>
        /// 申请单打印医生工号
        /// </summary>

        public string RequestPrintDoctorID { get; set; }
        /// <summary>
        /// 申请单打印次数 
        /// </summary>

        public int RequestPrintNum { get; set; } = 0;

        /// <summary>
        /// 申请单打印状态 1-已打印 0-未打印
        /// </summary>

        public string RequestPrintState { get; set; }

        /// <summary>
        /// 报到通知单打印日期
        /// </summary>

        public string ReportNoticePrintDate { get; set; }
        /// <summary>
        ///  报到通知单打印时间
        /// </summary>

        public string ReportNoticePrintTime { get; set; }
        /// <summary>
        ///  报到通知单打印医生工号
        /// </summary>

        public string ReportNoticePrintDoctorID { get; set; }
        /// <summary>
        ///  报到通知单打印次数 
        /// </summary>

        public int ReportNoticePrintNum { get; set; } = 0;
        /// <summary>
        ///  报到通知单打印状态 1-已打印 0-未打印
        /// </summary>

        public string ReportNoticePrintState { get; set; }

        #endregion

        /// <summary>
        /// 预约修改次数 
        /// </summary>

        public int ReservationUpdateTimes { get; set; } = 0;

        /// <summary>
        /// 预约取消次数 
        /// </summary>

        public int ReservationCancelTimes { get; set; } = 0;

        /// <summary>
        /// 退检操作者工号
        /// </summary>

        public string RecheckerCode { get; set; }
        /// <summary>
        /// 退检操作者名称
        /// </summary>

        public string RecheckerName { get; set; }
        /// <summary>
        /// 退检原因
        /// </summary>

        public string RecheckReason { get; set; }
        /// <summary>
        /// 退检时间
        /// </summary>

        public string RecheckTime { get; set; }

        /// <summary>
        /// 护士备注
        /// </summary>

        public string NurseMemo { get; set; }

        /// <summary>
        /// 是否锁定
        /// </summary>

        public string islock { get; set; }

        /// <summary>
        /// XML
        /// </summary>

        public string GatheringInfo { get; set; }
        /// <summary>
        /// 备注
        /// </summary>

        public string Remark { get; set; }

        /// <summary>
        /// 主诉
        /// </summary>

        public string zhusu { get; set; }
        /// <summary>
        /// 体格检查
        /// </summary>

        public string tigejiancha { get; set; }

        /// <summary>
        /// 检查流水号
        /// </summary>

        public string RequisitionID { get; set; }

        #region 暂时不用

        //-----------应该储存在RequestExam表
        /// <summary>
        /// 检查目的
        /// </summary>

        public string ExamPurpose { get; set; }

        /// <summary>
        /// 检查准备
        /// </summary>

        public string ExamReady { get; set; }
        /// <summary>
        /// 检查说明
        /// </summary>

        public string ExamExplain { get; set; }
        //--------------------------------------------

        /// <summary>
        /// 核医学预约日期
        /// </summary>
        public string HSAppointDate { get; set; }
        /// <summary>
        /// 核医学预约时间
        /// </summary>
        public string HSAppointTime { get; set; }
        /// <summary>
        /// 核医学打针日期
        /// </summary>
        public string HSInjectionDate { get; set; }
        /// <summary>
        /// 核医学打针时间
        /// </summary>
        public string HSInjectionTime { get; set; }

        /// <summary>
        /// 系统入口
        /// </summary>

        public int? SystemIn { get; set; }


        public string ChildPatientID { get; set; }

        public string ReservationOpDate { get; set; }

        public string ReservationOpTime { get; set; }


        public string CancelReservaFlag { get; set; }

        #endregion

        /// <summary>
        /// 开单院区名称
        /// </summary>
        public string HospitalName { get; set; }

        /// <summary>
        /// 执行科室名称
        /// </summary>

        public string ExamDeptName { get; set; }


        /// <summary>
        /// 楼层
        /// </summary>
        public string FloorNum { get; set; }
        /// <summary>
        /// 楼层名称
        /// </summary>
        public string FloorName { get; set; }

        public string PhyQueueCode { get; set; }

        public string PhyQueueName { get; set; }
        public string CheckType { get; set; }
        public int InPriorityLevel { get; set; }
        public string PatientWardNo { get; set; }
    }
}
